<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- react 核心包 -->
    <script src="https://unpkg.com/react@18/umd/react.development.js"></script>
    <!-- react dom 相关的包 -->
    <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>

    <!-- Don't use this in production-->
    <!-- 提供es6和jsx的支持 -->
    <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<body>
    <!-- 提供一个挂载点 -->
    <div id="app"></div>

    <script type="text/babel">
        // 获取到这个挂载点元素
        var container = document.getElementById('app')
        var root = ReactDOM.createRoot(container)
        console.log('root',root)
        root.render(<h1>我是react</h1>)
    </script>
</body>
</html>